<?php

namespace JLPay\Models\Ledger\BalanceSplit;

use JLPay\Models\BaseRequest;

/**
 * 余额分账查询请求
 */
class BalanceSplitQueryRequest extends BaseRequest
{
    /**
     * API URL
     */
    public const API_URL = '/open/ledger/balance/split/query';

    protected ?string $orgCode = null;
    protected ?string $outOrderNo = null;
    protected ?string $orderNo = null;

    /**
     * 设置机构代码
     *
     * @param string $orgCode
     * @return self
     */
    public function setOrgCode(string $orgCode): self
    {
        $this->orgCode = $orgCode;
        return $this;
    }

    /**
     * 设置外部订单号
     *
     * @param string $outOrderNo
     * @return self
     */
    public function setOutOrderNo(string $outOrderNo): self
    {
        $this->outOrderNo = $outOrderNo;
        return $this;
    }

    /**
     * 设置嘉联分账单号
     *
     * @param string $orderNo
     * @return self
     */
    public function setOrderNo(string $orderNo): self
    {
        $this->orderNo = $orderNo;
        return $this;
    }

    /**
     * 获取机构代码
     *
     * @return string|null
     */
    public function getOrgCode(): ?string
    {
        return $this->orgCode;
    }

    /**
     * 获取外部订单号
     *
     * @return string|null
     */
    public function getOutOrderNo(): ?string
    {
        return $this->outOrderNo;
    }

    /**
     * 获取嘉联分账单号
     *
     * @return string|null
     */
    public function getOrderNo(): ?string
    {
        return $this->orderNo;
    }
} 